<template>
  <div class="app">
    <h1>我是App组件</h1>
    <br>
    <Person :name="name" :age="age" :car="car"/>
  </div>
</template>

<script>
  import Person from './components/Person'

  export default {
    name:'App',
    components:{Person},
    data() {
      return {
        name:'法外狂徒张三',
        age:67,
        car:{name:'迈腾380',price:'26W'}
      }
    },
  }
</script>

<style scoped>
  .app {
    background-color: skyblue;
    padding: 20px;
    box-shadow: 0 0 10px;
    border-radius: 10px;
  }
</style>